/*************************************************************************
 * @file: isurface.cpp
 * @date: 01/04/2012
 * TOPOL v1_0 - (c)copyright 2012 TEC/UFF
 *************************************************************************
 * This is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 * This software is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 ************************************************************************/

// includes
//----------
#include "isurface.h"
#include "../../mesh/meshgenerator.h"



///////////////////////////////////////////////////
///  Constructor and Destructor Implementation  ///
///////////////////////////////////////////////////

//-------------------------------------------------------------------------
ISurface::ISurface()
{

}
//-------------------------------------------------------------------------





///////////////////////////////////////
///  PUBLIC Methods Implementation  ///
///////////////////////////////////////


//-------------------------------------------------------------------------
void 
ISurface::generateSurfMesh( vector<IPoint> _boundaryPts )
{
  m_nodes.clear();
  m_triangles.clear();
  MeshGenerator mesher;
  mesher.generateMesh( _boundaryPts, m_nodes, m_triangles );
}
//-------------------------------------------------------------------------


//-------------------------------------------------------------------------
void 
ISurface::getSurfMesh( vector<IPoint>& _nodes, vector<vector<int> >& _triangles )
{
  _nodes = m_nodes;
  _triangles = m_triangles;
}
//-------------------------------------------------------------------------
